#include <stdio.h>
int a,b,c,d,e;
void JIAOHUAN(int m,int n);
int main(){
    printf("enter a=\n");
    scanf("%d",&a);
    printf("enter b=\n");
    scanf("%d",&b);
    printf("enter c=\n");
    scanf("%d",&c);
    printf("enter d=\n");
    scanf("%d",&d);
while(!(a<b && b<c && c<d)){
    if(a>b){
        e=a;
        a=b;
        b=e;
    }
    if(b>c){
        e=b;
        b=c;
        c=e;
    }
    if(c>d){
        e=c;
        c=d;
        d=e;
    }
    }
    printf("%d %d %d %d",a,b,c,d);
}
